<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 <link rel="stylesheet" type="text/css" href="css/coms.css" />
<title>Already Booked Conferences</title>


</head>
<body>


<p>
</p>

		<s:if test="conferenceItemList.size() > 0">
               
					 <table class="mainTable" cellpadding="5px">
					<tr>
					
					<th>ID</th>
					<th>Type</th>
					<th>Desc</th>
					<th>Deadline</th>
					<th>Start Time</th>
					<th>End Time</th>
					<th>ItemFee</th>
					<th>Location</th>
					<th>PresentationType</th>
					<th>Status</th>
					<th>Upload file</th>
					
					</tr>
					<s:iterator value="conferenceItemList" status="status">
					<tr>
					<td><s:property value="conferenceItemID" /></td>
					<td><s:property value="conferenceItemType" /></td>
					<td><s:property value="description" /></td>
					<td><s:property value="deadlineForSubmission" /></td>
					<td><s:property value="startTime" /></td>
					<td><s:property value="endTime" /></td>
					
					<td><s:property value="itemFee" /></td>
					<td><s:property value="location" /></td>
					<td><s:property value="presentaionType" /></td>
					<td>
					
					
						<s:if test="paymentStatus=='Make Payment'">
							<s:url id="Conitemreg" action="paymentAction">
							<s:param name="conferenceItemID" value="%{conferenceItemID}"></s:param>
							</s:url>
							<s:a href="%{Conitemreg}">Make Payment</s:a>
						</s:if>
						
						<s:if test="paymentStatus=='Succesfull'">
							
							Succesfull
							
						</s:if>
						
						
					</td>
					
					<td>
					
					<s:if test="paymentStatus=='Make Payment'">
							
							------------
							
						</s:if>
						
						<s:if test="paymentStatus=='Succesfull'">
							
								<s:actionerror />
					 			<s:form action="userImage" method="post" enctype="multipart/form-data">
 								<s:file name="userImage" label="User Image" />
 								<s:submit value="Upload" align="center" />
 								
						</s:form>
							
							
						</s:if>
						
					</td>		
						
					</tr>
					
					</s:iterator>
				</table>

</s:if>

</body>
</html>